package NGUYENNGOCHUNG;

public class TaoRaNhanVatGame {
	public static void main(String[] args) {
		// 1. khai bao doi tuong
		NVGAME tuska;
		NVGAME lina;
		NVGAME luna;
		NVGAME mirrana;
		// 2. khoi tao doi tuong.
		tuska = new NVGAME();
		lina = new NVGAME("lina", 25, "ulti", "tay khong");
		luna = new NVGAME();
		mirrana = new NVGAME("mirrana", 1, "arrow", "cung");
		
		// hien thi thong tin cua doi tuong ra ben ngoai man hinh
		System.out.println("lina");
		System.err.println("ten: "+ lina.getTennv());
		System.out.println("capdo: "+ lina.getCapdo());
		System.out.println("ky nang: "+lina.getKynang());
		System.out.println("binh khi: "+lina.getBinhkhi());
		
		
		
		
		// khoi tao co tham so cho tuska
		tuska = new NVGAME("tuska", 21, "tusk", "kiem");
		System.out.println("tuska");
		System.err.println("ten: "+ tuska.getTennv());
		System.out.println("capdo: "+ tuska.getCapdo());
		System.out.println("ky nang: "+tuska.getKynang());
		System.out.println("binh khi: "+tuska.getBinhkhi());
		
		
		//su dung set
		lina.setTennv("dota");
		lina.setCapdo(299);
		lina.setKynang("aaaa");
		lina.setBinhkhi("tay khong");
		
		System.out.println("lina");
		System.err.println("ten: "+ lina.getTennv());
		System.out.println("capdo: "+ lina.getCapdo());
		System.out.println("ky nang: "+lina.getKynang());
		System.out.println("binh khi: "+lina.getBinhkhi());
		
		// 5. thiet lap hanh vi cho cac doi tuong
		/*lina.Bay(100);
		tuska.Bay(200);*/
		
		System.out.println("bay "+lina.Bay(200));
	}
}
